package cn.sz.tm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.sz.tm.dao.UserDao;
import cn.sz.tm.pojo.User;
import cn.sz.tm.service.UserService;
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	public User findUserByNameAndPwd(User user) {
		if(user==null) {
			return null;
		}
		if(user.getLoginName()==null||user.getLoginName().equals("")||user.getLoginPwd()==null||user.getLoginPwd().equals("")) {
			return null;
		}
		return userDao.findUserByNameAndPwd(user);
	}

}
